import request from '/@/utils/request';

// 案件管理列表
export function getCaseManagementList(params: BookingListParams) {
	return request<any[]>({
		url: '/admin/caseManagement/page',
		method: 'get',
		params,
	});
}

// 案件统计
export function caseManagementStat(params: BookingListParams) {
	return request<any[]>({
		url: '/admin/caseManagement/stat',
		method: 'get',
		params,
	});
}

//  案件方量/趟数统计
export function caseVolumeStat(data: any) {
	return request<any>({
		url: '/admin/caseManagement/caseVolumeStat',
		method: 'post',
		data,
	});
}

// 案件管理新增
export function addCaseManagement(data: any) {
	return request<any>({
		url: '/admin/caseManagement/add',
		method: 'post',
		data,
	});
}

// 案件管理编辑
export function editCaseManagement(data: any) {
	return request<any>({
		url: '/admin/caseManagement/edit',
		method: 'post',
		data,
	});
}

// 案件处理结案

export function closeCase(params: any) {
	return request<any>({
		url: '/admin/caseManagement/closeCase',
		method: 'get',
		params,
	});
}
